import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import axios from "axios";

Vue.config.productionTip = false
axios.interceptors.request.use(config=> {
  var token=localStorage.getItem("token");
  if (token){
    config.headers.token=token;
  }
  return config;
})

Vue.prototype.$book=axios
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
